<?php /* Smarty version 2.6.14, created on 2012-10-17 18:41:45
         compiled from admin_cache.tpl */
?><?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'in_array', 'admin_cache.tpl', 92, false),array('modifier', 'default', 'admin_cache.tpl', 121, false),array('function', 'counter', 'admin_cache.tpl', 227, false),)), $this);
?><?php
SELanguage::_preload_multi(1243,1245,191,1248,1249,1250,1251,1252,1253,1254,1255,1256,1257,1258,1259,1260,1261,1262,1263,1264,1265,1266,1267,1268,1269,1270,1271,1272,1273,1274,1275,1276,1277,1278,1279,1280,1281,1282,173);
SELanguage::load();
?><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'admin_header.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>


<h2><?php echo SELanguage::_get(1243); ?></h2>
<div><?php echo SELanguage::_get(1245); ?></div>
<br />


<?php if ($this->_tpl_vars['result']): ?>
<div class='success'>
  <img src='../images/success.gif' class='icon' border='0' />
  <?php echo SELanguage::_get(191); ?>
</div>
<?php endif; 
 if ($this->_tpl_vars['is_error']): ?>
  <div class='error'>
    <img src='../images/error.gif' border='0' class='icon' />
    <?php if (is_numeric ( $this->_tpl_vars['is_error'] )): 
 echo SELanguage::_get($this->_tpl_vars['is_error']); 
 else: 
 echo $this->_tpl_vars['is_error']; 
 endif; ?>
  </div>
<?php endif; 
 echo '
<script type="text/javascript">
  
  function addCachingServer(type)
  {
    var typeCapitalized = type.capitalize();
    
    if( !$(\'SECache\' + type + \'ServersTemplate\') ) return;
    if( !$(\'SECache\' + type + \'ServersContainer\') ) return;
    
    var serverCount = $(\'SECache\' + type + \'ServersContainer\').getElements(\'table\').length + 1;
    var newServerTemplate = $(\'SECache\' + type + \'ServersTemplate\').clone();
    
    newServerTemplate.style.display = \'\';
    newServerTemplate.getElement(\'.SECacheMemcacheServerIndex\').innerHTML += \' &nbsp; '; 
 echo SELanguage::_get(1248); 
 echo ' \'+serverCount;
    
    newServerTemplate.inject($(\'SECache\' + type + \'ServersContainer\'));
  }
  
  function removeCachingServer(tdobj)
  {
    $(tdobj).getParent(\'table\').destroy();
  }
  
</script>
'; ?>



<form action='admin_cache.php' method='post'>

<table cellpadding='0' cellspacing='0' width='600'>
  <tr>
    <td class='header'><?php echo SELanguage::_get(1249); ?></td>
  </tr>
  
  <tr>
    <td class='setting1'><b><?php echo SELanguage::_get(1250); ?></b> <?php echo SELanguage::_get(1251); ?></td>
  </tr>
  <tr>
    <td class='setting2'>
      <table>
        <tr>
          <td><input type="radio" id="setting_cache_enabled_1" name="setting_cache_enabled" value="1"<?php if (empty ( $this->_tpl_vars['available_storage'] )): ?> disabled<?php elseif (! empty ( $this->_tpl_vars['setting']['setting_cache_enabled'] )): ?> checked<?php endif; ?> /></td>
          <td><label for="setting_cache_enabled_1"><?php echo SELanguage::_get(1252); ?></label></td>
        </tr>
        <tr>
          <td><input type="radio" id="setting_cache_enabled_0" name="setting_cache_enabled" value="0"<?php if (empty ( $this->_tpl_vars['setting']['setting_cache_enabled'] ) || empty ( $this->_tpl_vars['available_storage'] )): ?> checked<?php endif; ?> /></td>
          <td><label for="setting_cache_enabled_0"><?php echo SELanguage::_get(1253); ?></label></td>
        </tr>
      </table>
    </td>
  </tr>
  
  <tr>
    <td class='setting1'><b><?php echo SELanguage::_get(1254); ?></b><?php echo SELanguage::_get(1255); ?><br /><br /><i><?php echo SELanguage::_get(1256); ?></i></td>
  </tr>
  <tr>
    <td class='setting2'>
      <table>
        <tr>
          <td><input type="radio" id="setting_cache_default_file" name="setting_cache_default" value="file"<?php if (! ((is_array($_tmp='file')) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['available_storage']) : in_array($_tmp, $this->_tpl_vars['available_storage']))): ?> disabled<?php elseif ($this->_tpl_vars['setting']['setting_cache_default'] == 'file'): ?> checked<?php endif; ?> /></td>
          <td><label for="setting_cache_default_file"><?php echo SELanguage::_get(1257); ?></label></td>
        </tr>
        <tr>
          <td><input type="radio" id="setting_cache_default_memcache" name="setting_cache_default" value="memcache"<?php if (! ((is_array($_tmp='memcache')) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['available_storage']) : in_array($_tmp, $this->_tpl_vars['available_storage']))): ?> disabled<?php elseif ($this->_tpl_vars['setting']['setting_cache_default'] == 'memcache'): ?> checked<?php endif; ?> /></td>
          <td><label for="setting_cache_default_memcache"><?php echo SELanguage::_get(1258); ?></label></td>
        </tr>

        <tr>
          <td><input type="radio" id="setting_cache_default_apc" name="setting_cache_default" value="apc"<?php if (! ((is_array($_tmp='apc')) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['available_storage']) : in_array($_tmp, $this->_tpl_vars['available_storage']))): ?> disabled<?php elseif ($this->_tpl_vars['setting']['setting_cache_default'] == 'apc'): ?> checked<?php endif; ?> /></td>
          <td><label for="setting_cache_default_apc">APC</label></td>
        </tr>
        <tr>
          <td><input type="radio" id="setting_cache_default_xcache" name="setting_cache_default" value="xcache"<?php if (! ((is_array($_tmp='xcache')) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['available_storage']) : in_array($_tmp, $this->_tpl_vars['available_storage']))): ?> disabled<?php elseif ($this->_tpl_vars['setting']['setting_cache_default'] == 'xcache'): ?> checked<?php endif; ?> /></td>
          <td><label for="setting_cache_default_xcache">Xcache</label></td>
        </tr>

      </table>
    </td>
  </tr>
  
  <tr>
    <td class='setting1'><b><?php echo SELanguage::_get(1259); ?></b> <?php echo SELanguage::_get(1260); ?><br /><br /><i><?php echo SELanguage::_get(1261); ?></i></td>
  </tr>
  
  <tr>
    <td class='setting2'>
      <table>
        <tr>
          <td><input class="text" type="text" size="5" maxlength="10" id="setting_cache_lifetime" name="setting_cache_lifetime" value="<?php echo ((is_array($_tmp=@$this->_tpl_vars['setting']['setting_cache_lifetime'])) ? $this->_run_mod_handler('default', true, $_tmp, 120) : smarty_modifier_default($_tmp, 120)); ?>
" /></td>
          <td><label for="setting_cache_lifetime"><?php echo SELanguage::_get(1262); ?></label></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<br />




<table cellpadding='0' cellspacing='0' width='600'>
  <tr>
    <td class='header'><?php echo SELanguage::_get(1263); ?></td>
  </tr>
  
  <tr>
    <td class='setting1'><?php echo SELanguage::_get(1264); ?></td>
  </tr>
  
  <?php if (((is_array($_tmp='file')) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['available_storage']) : in_array($_tmp, $this->_tpl_vars['available_storage']))): ?>
  <tr>
    <td class='setting1' style="background: #F3FFF3; color: #00CC00;"><?php echo SELanguage::_get(1265); ?></td>
  </tr>
  <?php else: ?>
  <tr>
    <td class='setting2' style="background: #FFF3F3; color: #FF0000;"><?php echo SELanguage::_get(1266); ?></td>
  </tr>
  <?php endif; ?>
  
  <tr>
    <td class='setting1'><b><?php echo SELanguage::_get(1267); ?></b> <?php echo SELanguage::_get(1268); ?></td>
  </tr>
  <tr>
    <td class='setting2'>
      <input style="width:100%;" class="text" type="text" size="50" name="setting_cache_file_options[root]" value="<?php echo ((is_array($_tmp=@$this->_tpl_vars['cache_file_options']['root'])) ? $this->_run_mod_handler('default', true, $_tmp, './cache') : smarty_modifier_default($_tmp, './cache')); ?>
" />
    </td>
  </tr>
  
  <tr>
    <td class='setting1'><b><?php echo SELanguage::_get(1269); ?></b> <?php echo SELanguage::_get(1270); ?></td>
  </tr>
  <tr>
    <td class='setting2'>
      <table cellpadding='0' cellspacing='0'>
        <tr>
          <td>
            <input type="checkbox" id="setting_cache_file_options_locking" name="setting_cache_file_options[locking]" value="1"<?php if (! isset ( $this->_tpl_vars['cache_file_options']['locking'] ) || $this->_tpl_vars['cache_file_options']['locking']): ?> checked<?php endif; ?> />
          </td>
          <td><label for="setting_cache_file_options_locking"><?php echo SELanguage::_get(1271); ?></label></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<br />




<table cellpadding='0' cellspacing='0' width='600'>
  <tr>
    <td class='header'><?php echo SELanguage::_get(1272); ?></td>
  </tr>
  
  <tr>
    <td class='setting1'><?php echo SELanguage::_get(1273); ?></td>
  </tr>
  
  <?php if (((is_array($_tmp='memcache')) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['available_storage']) : in_array($_tmp, $this->_tpl_vars['available_storage']))): ?>
  <tr>
    <td class='setting2' style="background: #F3FFF3; color: #00FF00;"><?php echo SELanguage::_get(1274); ?></td>
  </tr>
  <?php else: ?>
  <tr>
    <td class='setting2' style="background: #FFF3F3; color: #FF0000;"><?php echo SELanguage::_get(1275); ?></td>
  </tr>
  <?php endif; ?>
  
  <tr>
    <td class='setting1'><b><?php echo SELanguage::_get(1276); ?></b> <?php echo SELanguage::_get(1277); ?></td>
  </tr>
  
  <tr>
    <td class='setting2'>
      <table>
        <tr>
          <td><input type="checkbox" id="setting_cache_memcache_options_compression" name="setting_cache_memcache_options[compression]"<?php if ($this->_tpl_vars['cache_memcache_options']['compression']): ?> checked<?php endif; ?> /></td>
          <td><label for="setting_cache_memcache_options_compression"><?php echo SELanguage::_get(1278); ?></label></td>
        </tr>
      </table>
    </td>
  </tr>
  
  <tr>
    <td class='setting1'><b><?php echo SELanguage::_get(1279); ?></b> <?php echo sprintf(SELanguage::_get(1280), "javascript:void(0);", "addCachingServer('Memcache');"); ?></td>
  </tr>
  <tr>
    <td class='setting2' id="SECacheMemcacheServersContainer">
      <?php if (is_array ( $this->_tpl_vars['cache_memcache_options'] ) && is_array ( $this->_tpl_vars['cache_memcache_options']['servers'] ) && ! empty ( $this->_tpl_vars['cache_memcache_options']['servers'] )): ?>
      <?php unset($this->_sections['memcache_server_loop']);
$this->_sections['memcache_server_loop']['name'] = 'memcache_server_loop';
$this->_sections['memcache_server_loop']['loop'] = is_array($_loop=$this->_tpl_vars['cache_memcache_options']['servers']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['memcache_server_loop']['show'] = true;
$this->_sections['memcache_server_loop']['max'] = $this->_sections['memcache_server_loop']['loop'];
$this->_sections['memcache_server_loop']['step'] = 1;
$this->_sections['memcache_server_loop']['start'] = $this->_sections['memcache_server_loop']['step'] > 0 ? 0 : $this->_sections['memcache_server_loop']['loop']-1;
if ($this->_sections['memcache_server_loop']['show']) {
    $this->_sections['memcache_server_loop']['total'] = $this->_sections['memcache_server_loop']['loop'];
    if ($this->_sections['memcache_server_loop']['total'] == 0)
        $this->_sections['memcache_server_loop']['show'] = false;
} else
    $this->_sections['memcache_server_loop']['total'] = 0;
if ($this->_sections['memcache_server_loop']['show']):

            for ($this->_sections['memcache_server_loop']['index'] = $this->_sections['memcache_server_loop']['start'], $this->_sections['memcache_server_loop']['iteration'] = 1;
                 $this->_sections['memcache_server_loop']['iteration'] <= $this->_sections['memcache_server_loop']['total'];
                 $this->_sections['memcache_server_loop']['index'] += $this->_sections['memcache_server_loop']['step'], $this->_sections['memcache_server_loop']['iteration']++):
$this->_sections['memcache_server_loop']['rownum'] = $this->_sections['memcache_server_loop']['iteration'];
$this->_sections['memcache_server_loop']['index_prev'] = $this->_sections['memcache_server_loop']['index'] - $this->_sections['memcache_server_loop']['step'];
$this->_sections['memcache_server_loop']['index_next'] = $this->_sections['memcache_server_loop']['index'] + $this->_sections['memcache_server_loop']['step'];
$this->_sections['memcache_server_loop']['first']      = ($this->_sections['memcache_server_loop']['iteration'] == 1);
$this->_sections['memcache_server_loop']['last']       = ($this->_sections['memcache_server_loop']['iteration'] == $this->_sections['memcache_server_loop']['total']);
?>
        <table>
          <tr>
            <td colspan="2" class="SECacheMemcacheServerIndex">
              <a href="javascript:void(0);" onclick="removeCachingServer(this);">x</a> &nbsp;
              <?php echo SELanguage::_get(1248); ?> <?php echo smarty_function_counter(array('name' => 'memcache_servers'), $this);?>

            </td>
          </tr>
          <tr>
            <td><?php echo SELanguage::_get(1281); ?></td>
            <td><input class="text" type="text" name="setting_cache_memcache_options[server_hosts][]" value="<?php echo $this->_tpl_vars['cache_memcache_options']['servers'][$this->_sections['memcache_server_loop']['index']]['host']; ?>
" /></td>
          </tr>
          <tr>
            <td><?php echo SELanguage::_get(1282); ?></td>
            <td><input class="text" type="text" name="setting_cache_memcache_options[server_ports][]" value="<?php echo $this->_tpl_vars['cache_memcache_options']['servers'][$this->_sections['memcache_server_loop']['index']]['port']; ?>
" /></td>
          </tr>
        </table>
      <?php endfor; endif; ?>
      <?php else: ?>
        <table>
          <tr>
            <td colspan="2" class="SECacheMemcacheServerIndex">
              <a href="javascript:void(0);" onclick="removeCachingServer(this);">x</a>
              <?php echo SELanguage::_get(1248); ?> <?php echo smarty_function_counter(array('name' => 'memcache_servers'), $this);?>

            </td>
          </tr>
          <tr>
            <td><?php echo SELanguage::_get(1281); ?></td>
            <td><input class="text" type="text" name="setting_cache_memcache_options[server_hosts][]" value="localhost" /></td>
          </tr>
          <tr>
            <td><?php echo SELanguage::_get(1282); ?></td>
            <td><input class="text" type="text" name="setting_cache_memcache_options[server_ports][]" value="11211" /></td>
          </tr>
        </table>
      <?php endif; ?>
    </td>
  </tr>
</table>
<br />





<table cellpadding='0' cellspacing='0' width='600'>
  <tr>
    <td class='header'>Xcache Cache Settings</td>
  </tr>

  <tr>
    <td class='setting1'>The settings below are applicable if you have selected Xcache caching above.</td>
  </tr>

  <?php if (((is_array($_tmp='xcache')) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['available_storage']) : in_array($_tmp, $this->_tpl_vars['available_storage']))): ?>
  <tr>
    <td class='setting1' style="background: #F3FFF3; color: #00CC00;">Successfully initialized. The Memcache extension was detected.</td>
  </tr>
  <?php else: ?>
  <tr>
    <td class='setting2' style="background: #FFF3F3; color: #FF0000;">Ensure you have the extension installed and that the proper username and password are filled out below.</td>
  </tr>
  <?php endif; ?>

  <tr>
    <td class='setting1'><b>Auth Settings</b> Required to flush cache entries</td>
  </tr>
  <tr>
    <td class='setting2'>
      <table cellpadding='0' cellspacing='0'>
        <tr>
          <td>
            <label for="setting_cache_file_options_user">Username</label>&nbsp;
          </td>
          <td>
            <input class="text" type="text" id="setting_cache_xcache_options_user" name="setting_cache_xcache_options[user]" value="<?php echo $this->_tpl_vars['cache_xcache_options']['user']; ?>
" />
          </td>
        </tr>
        <tr>
          <td>
            <label for="setting_cache_file_options_password">Password</label>&nbsp;
          </td>
          <td>
            <input class="text" type="password" id="setting_cache_xcache_options_password" name="setting_cache_xcache_options[password]" value="<?php echo $this->_tpl_vars['cache_xcache_options']['password']; ?>
" />
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<br />



<input type='submit' class='button' value='<?php echo SELanguage::_get(173); ?>' />
<input type='hidden' name='task' value='dosave' />

</form>
<br />




<table id="SECacheMemcacheServersTemplate" style="display:none;">
  <tr>
    <td colspan="2" class="SECacheMemcacheServerIndex">
      <a href="javascript:void(0);" onclick="removeCachingServer(this);">x</a>
    </td>
  </tr>
  <tr>
    <td><?php echo SELanguage::_get(1281); ?></td>
    <td><input class="text" type="text" name="setting_cache_memcache_options[server_hosts][]" value="localhost" /></td>
  </tr>
  <tr>
    <td><?php echo SELanguage::_get(1282); ?></td>
    <td><input class="text" type="text" name="setting_cache_memcache_options[server_ports][]" value="11211" /></td>
  </tr>
</table>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'admin_footer.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>